<?php
class ActivityShareInfoAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     *
     * @param $userId {int} 玩家ID
     * @param $reqTime {int}
     * @return SzResponse
     */
    public function execute($userId,$activityId,$reqTime)
    {
        if (!GameService::get()->verifySysUnlock($userId, GameConst::FUNC_ACTIVITY_SHARE)) {
            return $this->buildResponse(false);
        }
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            ActivityService::get()->getShareInfo($userId,$activityId)
        );
    }
}